<?php $this->beginClip('pagetitle'); ?>获奖记录<?php $this->endClip(); ?>

<header class="page-header">
	<a href="<?php echo url('/activity/activitydetail', array('id_wxuser_mcard' => $wxuserMcard->id_wxuser_mcard,'id_onlineactivity'=>$id_onlineactivity,'onlineactivity_action'=>$onlineactivity_action)); ?>">
		<span class="am-icon-chevron-left" id="btn-back" style="color: #FFF !important;"></span>
		<h1>获奖记录</h1>
	</a>
</header>
<div class="am-tabs" id="tabs-tickets">
	<div class="am-tabs-bd">
		<div class="am-tab-panel am-active">
		<?php $prizesRecords = $wxuserMcard->getPrizesRecord(false); ?>
			<?php if(empty($prizesRecords)): ?>
				<p class="empty-list-noti text-center">暂时没有获奖记录，赶快参加活动赢大奖吧~</p>
			<?php else: ?>
			<ul class="am-list">	
				<?php foreach($prizesRecords as $prizesRecord): ?>
				<li>				
                    <h2 class="ticket-name">获得奖励：<?php echo $prizesRecord['activity_prize_name']; ?></h2>
					<p class="desc">
						通过<span class="red"><?php echo $prizesRecord['online_activity_name']; ?></span>活动获得																
					</p>
					<p class="desc">						
						<?php echo $prizesRecord['created_timestamp']; ?>
					</p>
                    <?php if(isset($prizesRecord['activity_exchange_no'])):?>
                    <p class="desc">						
                        兑奖号码:&nbsp;<span class="red"><?php echo $prizesRecord['activity_exchange_no']; ?></span>
					</p>	
                    <?php endif;?>
				</li>
				<?php endforeach; ?>
			</ul>
			<?php endif; ?> 
		</div>	
	</div>
</div>






